package com.cjw.campus.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 提问点评表
 * </p>
 *
 * @author cjw
 * @since 2023-03-28
 */
@Getter
@Setter
@TableName("questions_reviews_table")
@Schema(name = "QuestionsReviewsTable", description = "$!{table.comment}")
public class QuestionsReviewsTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "点评ID")
    @TableId(value = "reviews_id", type = IdType.AUTO)
    private Long reviewsId;

    @Schema(description = "提问ID")
    private Long questionsId;

    @Schema(description = "前台用户ID")
    private Long foregroundUserId;

    @Schema(description = "点评内容")
    private String reviewsContent;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createor;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;

    @Schema(description = "删除标志")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleteFlag;
}
